<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div>
    <!-- <button style="width:200px;height:200px;background-color:aquamarine"></button> -->
    <ul style="list-style:none">
      <li>item1</li>
      <li>item2</li>
      <li>item3</li>
      <li>item4</li>
      <li>item5</li>
      <li>item6</li>
    </ul>
  </div>
  <script src="node_modules/jquery/dist/jquery.min.js"></script>
  <script>
    // var bt=document.querySelector('button')
    // bt.addEventListener('click',event=>{console.log("冒泡")},true)
    // bt.addEventListener('click',event=>{console.log("捕获")},false)
    $("ul").on("mouseover", function (e) {
      $(e.target).css("background-color", "#ddd").siblings().css("background-color", "white");
    })
  </script>
</body>

</html>